package org.fer.solution;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Practico9Activity extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		Button workerthreadbutton = (Button) this
				.findViewById(R.id.workerthreadbutton);
		Button asynctaskbutton = (Button) this
				.findViewById(R.id.asynctaskbutton);

		workerthreadbutton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(Practico9Activity.this,
						WorkerThreadActivity.class);

				startActivity(intent);

			}
		});

		asynctaskbutton.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent intent = new Intent(Practico9Activity.this,
						AsyncTaskActivity.class);

				startActivity(intent);

			}
		});

	}
}